-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration for DESPIAD project #572
base: main
Are you sure you want to change the base?
Conversation
this is because resources sharing the same StudyInstanceUID in Orthanc Raw will be combined into a single resource in Orthanc Anon. Previously, we would try to export each resource after anonymisation, but this meant other resources sharing the same StudyInstanceUID were not exported.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #572 +/- ##
==========================================
+ Coverage 75.73% 83.47% +7.74%
==========================================
Files 56 72 +16
Lines 2811 3420 +609
==========================================
+ Hits 2129 2855 +726
+ Misses 682 565 -117 ☔ View full report in Codecov by Sentry. |
04532e7
to
5a47136
Compare
784da58
to
28f92a6
Compare
In orthanc anon plugin, skip series that have few than min_instances_per_series instances
also default to allowing no manufacturers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we know the allowed_manufactures
we should add for each project?
pixl_dcmd/tests/test_main.py
Outdated
@@ -194,7 +194,9 @@ def ids_for_parameterised_test(val: pathlib.Path) -> str: | |||
|
|||
|
|||
@pytest.mark.parametrize( | |||
("yaml_file"), PROJECT_CONFIGS_DIR.glob("*.yaml"), ids=ids_for_parameterised_test | |||
("yaml_file"), | |||
PROJECT_CONFIGS_DIR.glob("test-*.yaml"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no longer testing anonymisation using the non-test project configs. If we want to test all project configs, we need to add:
allowed_manufacturers:
- regex: "^company"
exclude_series_numbers: []
to all configs, unless there's a nicer way to do it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for the existing projects we can just allow all manufacturers, as that's what was implicitly done. We do have a test that ensures all configs are valid though right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yeah that's fair, and for DESPIAD shall we limit to known manufacturers? And yeah we have a separate test to check configs are valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've allowed all manufacturers for the existing configs, and added them back to the test_anonymise_and_validate_dicom
tests
Description
Closes #571
Closes #530
ensure all resources sharing aThis has already been fixed in Improve anon logging and anonymise all matching studies at once #582StudyInstanceUID
in Orthanc Raw are exported (they may exist as separate resources in Orthanc Raw if they have differentStudyID
s, but are combined into a single resource in Orthanc Anon as theStudyID
tag is deleted)Type of change
Please delete options accordingly to the description.
Suggested Checklist
main
branch.squash and merge